// 样式引入
import 'buefy/dist/buefy.css';
import '@/assets/markdown.scss';

// vue
import { createApp } from 'vue';
import App from './App.vue';

const app = createApp(App);

// store
import { createStore } from 'vuex';
import { objStore } from './base/store.js';

const store = createStore(objStore);

// 路由
import { createRouter, createWebHistory } from 'vue-router';
import { routes } from './base/routes.js';

const router = createRouter({
  history: createWebHistory(store.state.host),
  routes,
});

// 插件
import plugin from './base/plugin.js';

// 注入
app.use(plugin);
app.use(router);
app.use(store);

app.mount('#app');
